package com.ok.constant;

import lombok.Getter;

/**
 * ws socket 事件枚举
 */
@Getter
public enum WsEventEnum {
    close("close", "连接关闭"),
    error("error", "连接错误"),
    open("open","连接打开"),
    message("message","接收客户端消息"),
    //状态或者value变化
    pointRDataChange("pointRDataChange","监测点实时数据值变动"),
    mesPintRDataChange("mesPointRDataChange","产线管理类型数值变动"),
    mesPintRData("mesPointRData","产线监测点实时数据"),
    //只要收到数据，就会产生此事件
    pointRData("pointRData","监测点实时数据");

    private final String title;
    private final String code;

    WsEventEnum(String code, String title) {
        this.code = code;
        this.title = title;
    }
}
